<?php




session_start();

require_once("LoginView.php");
require_once("LoginHandler.php");
require_once("LoginController.php");


$logincontroller = new LoginController();
$loginview = new LoginView();
$loginhandler = new LoginHandler();

if($loginhandler->Test())
{
	echo $loginview->Messages(LoginView::LOGINHANDLER_TEST_PASS);
}	
else {
	echo "<img src=\"IJustDontKnowWhatWentWrong.jpeg\" alt=\"I just don't know what went wrong!\"/>";
	echo $loginview->Messages(LoginView::LOGINHANDLER_NOT_PASS);
}


if($loginview->TickedRememberMe())
{
	echo"Rememberme fungerar inte.";
}
else {
	echo "Rememberme fungerar!";
}
	

